import request from '@/utils/request'

// 列表
export function getList(data) {
  return request({
    url: '/bus/receive/list',
    method: 'post',
    data: data
  })
}

export function downData(data) {
  return request({
    url: '/bus/receive/batchDownload/'+data.id,
    method: 'post',
    responseType: 'blob',
    data: data
  })
}
export function editData(data) {
  return request({
    url: '/bus/goodsRegister/updateGoodsRegister',
    method: 'post',
    data: data
  })
}
export function completeData(data) {
  return request({
    url: '/bus/receive/finish/'+data.id,
    method: 'put',
    data: data
  })
}
export function getHistoryList(data) {
  return request({
    url: '/bus/storageHistory/page',
    method: 'post',
    data: data
  })
}
// 慈善赠药-列表导出
export function receiveExport(data) {
  return request({
    url: '/bus/receive/export',
    method: 'post',
    responseType: 'blob',
    data: data
  })
}